<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 内嵌式的js -->
    <!-- <script>
        alert('沙漠骆驼')
    </script> -->
    <script src="my.js"></script>
</head>

<body>
    <!-- 行内式的js  直接写道元素内部 -->
    <!-- <input type="button" value="刘德华" onclick="alert('澳门赌侠')"> -->
</body>

</html>